﻿using Microsoft.XLANGs.Core;

namespace AppFx.BizTalk.Orchestrations
{
    /// <summary>
    /// Provides information about the current orchestration
    /// </summary>
    public sealed class CurrentOrchestration
    {
        
        /// <summary>
        /// Gets the name of the current executing orchestration
        /// </summary>
        public static string Name
        {
            get
            {
                return Service.RootService.Name;
            }
        }
        /// <summary>
        /// Gets the instance id of the current executing orchestration
        /// </summary>
        public static string InstanceId
        {
            get
            {
                return Service.RootService.InstanceId.ToString();
            }
        }
    }
}


